package com.bdqn.bus.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author KazuGin
 * @since 2020-05-14
 */
@TableName("bus_rent")
public class Rent implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 出租单ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 出租单单号
     */
    private String rentid;

    /**
     * 租金
     */
    private Double price;

    /**
     * 租车日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date begindate;

    /**
     * 归还日期
     */
    private Date returndate;

    /**
     * 租赁天数
     */
    private Integer rentday;

    /**
     * 是否归还1-已归还 0未归还
     */
    private Integer rentflag;

    /**
     * 身份证号码
     */
    private String identity;

    /**
     * 车牌号码
     */
    private String carnumber;

    /**
     * 操作人
     */
    private String opername;

    /**
     * 创建日期
     */
    private Date createtime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRentid() {
        return rentid;
    }

    public void setRentid(String rentid) {
        this.rentid = rentid;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Date getBegindate() {
        return begindate;
    }

    public void setBegindate(Date begindate) {
        this.begindate = begindate;
    }

    public Date getReturndate() {
        return returndate;
    }

    public void setReturndate(Date returndate) {
        this.returndate = returndate;
    }

    public Integer getRentday() {
        return rentday;
    }

    public void setRentday(Integer rentday) {
        this.rentday = rentday;
    }

    public Integer getRentflag() {
        return rentflag;
    }

    public void setRentflag(Integer rentflag) {
        this.rentflag = rentflag;
    }

    public String getIdentity() {
        return identity;
    }

    public void setIdentity(String identity) {
        this.identity = identity;
    }

    public String getCarnumber() {
        return carnumber;
    }

    public void setCarnumber(String carnumber) {
        this.carnumber = carnumber;
    }

    public String getOpername() {
        return opername;
    }

    public void setOpername(String opername) {
        this.opername = opername;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    @Override
    public String toString() {
        return "Rent{" +
        "id=" + id +
        ", rentid=" + rentid +
        ", price=" + price +
        ", begindate=" + begindate +
        ", returndate=" + returndate +
        ", rentday=" + rentday +
        ", rentflag=" + rentflag +
        ", identity=" + identity +
        ", carnumber=" + carnumber +
        ", opername=" + opername +
        ", createtime=" + createtime +
        "}";
    }
}
